<?php
/**
 * 爱客开源小组路由配置 
 **/

//小组路由 形如: /space/abc23
$router->add(
    "/group/mine",
    array(
     	'module' => 'group',
        "controller" => 'index',
        "action"     => 'mine',
    )
);
//发现小组
$router->add(
    "/group/explore",
    array(
     	'module' => 'group',
        "controller" => 'explore',
        "action"     => 'index',
    )
);
$router->add(
    "/group/explore/page/:int",
    array(
     	'module' => 'group',
        "controller" => 'explore',
        "action"     => 'index',
        "page"   => '1',
    )
);
//发现热帖
$router->add(
    "/group/explore/{cate:[a-zA-Z]+}",
    array(
     	'module' => 'group',
        "controller" => 'explore',
        "action"     => 'topics',
    	"cate"   => '1',    
    )
);
$router->add(
    "/group/explore/{cate:[a-zA-Z]+}/page/:int",
    array(
     	'module' => 'group',
        "controller" => 'explore',
        "action"     => 'topics',
    	"cate"   => '1',
        "page"   => '2',
    )
);

$router->add(
    "/group/people/{id:[a-zA-Z0-9\-_]{0,14}}",
    array(
     	'module' => 'group',
        "controller" => 'people',
        "action"     => 'index',
    )
);
$router->add(
    "/group/people/([a-zA-Z0-9\-_]{0,14})/([a-zA-Z]+)",
    array(
     	'module' => 'group',
        "controller" => 'people',
        "action"     => '2',
    	"id"     => '1',
    )
);
$router->add(
    "/group/show/:int",
    array(
     	'module' => 'group',
        "controller" => 'index',
        "action"     => 'show',
    	"id"     => '1',
    )
);
$router->add(
    "/group/rss/:int",
    array(
     	'module' => 'group',
        "controller" => 'index',
        "action"     => 'rss',
    	"id"     => '1',
    )
);
$router->add(
    "/group/members/:int",
    array(
     	'module' => 'group',
        "controller" => 'index',
        "action"     => 'members',
    	"id"     => '1',
    )
);
$router->add(
    "/group/topic/:int",
    array(
     	'module' => 'group',
        "controller" => 'topic',
        "action"     => 'show',
    	"id"     => '1',
    )
);
//帖子分页
$router->add(
    "/group/topic/:int/page/:int",
    array(
     	'module' => 'group',
        "controller" => 'topic',
        "action"     => 'show',
    	"id"     => '1',
    	"page"   => '2',
    )
);